package vo;

import java.util.List;

import po.SubModelPO;

public class SubModelVO {
	SubModelPO subModel;
	List<CourseVO> courseList;
	
	public SubModelVO(SubModelPO subModel, List<CourseVO> courseList) {
		super();
		this.subModel = subModel;
		this.courseList = courseList;
	}
	public SubModelPO getSubModel() {
		return subModel;
	}
//	public List<CourseVO> getCourseList() {
//		return courseList;
//	}
	public CourseVO getCourse(String courseID){
		for(CourseVO cv : courseList){
			if(cv.getCourseBasicPO().getCourseId().equals(courseID)){
				return cv;
			}
		}
		return null;
	}
}
